package com.lins.store.config.log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;

/**
 * 日志配置Demo
 * 启动时也会启动本实例
 */
//@Configuration
public class LogDemoConfig {
    private static final Logger LOG = LoggerFactory.getLogger(LogDemoConfig.class);

    @Bean
    public String logMethod() {
        //准备打印日志
        LOG.error("==========Preparing to Print Logs!!==========");
        return null;
    }
    /**
     * AOP的日志，error级别可以打印
     * 日志有时会失效，并且mybatis打印sql的也失效了
     *
     */
}
